//
//  MVCDataSource.h
//  Advance_MVC
//
//  Created by Willian on 2021/5/2.
//

#import <UIKit/UIKit.h>
#import "UserModel.h"
#import "TestTableViewCell.h"
#import "Present.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^ConfigCellBlock)(TestTableViewCell *cell, UserModel *userModel, NSIndexPath *indexPath);

@interface MVCDataSource : NSObject <UITableViewDelegate, UITableViewDataSource>

//初始化
- (instancetype)initWithActionTarget:(id<PresentDelegate>)actionTarget withCellReuseId:(NSString *)cellReuseId withConfigCellBlock:(ConfigCellBlock)configCellBlock;

//设置数据
- (void)obtainDataArray:(NSMutableArray *)dataArray;

@end

NS_ASSUME_NONNULL_END
